home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
comm
/
fido
/
addfile.lha
/
AddFile.spot
Wrap
Text File
|
1995-09-20
|
4KB
|
150 lines
/*
Addflow 1.0 by Mat Bettinson of the Plot Hatching Factory
1.1 Converted to run from Spot by Anthony Brice
anthony@backyard.demon.co.uk
Awesome additions
-----------------
Optional send to listed systems with a file requestor highlighting #?O
files in the outbound Directory
All the actions can now be aborted. Dunno how I missed that before.
All done with requestors as normal. Lot easy than a cli command with args.
Won't trash any flo packets due to silly errors like me using close(blah)
instead of Call close(blah).. Wondered why I had all those probs ;)
*/
ver=1.1
CR='0d'X
filedefault = 'File:'
Outbound = 'Xout:'
ADDRESS spot
OPTIONS results
IF ~EXISTS('LIBS:rexxsupport.library') THEN DO
'requestnotify "So where's the rexxsupport.library?"'
exit
END
CALL ADDLIB('rexxsupport.library',0,-30,0)
IF ~EXISTS('LIBS:rexxreqtools.library') THEN DO
'requestnotify "And where's the rexxreqtools.library gone?"'
exit
END
CALL ADDLIB('rexxreqtools.library',0,-30,0)
temp='Yet another nifty Zeus UK alliance Spot script'||CR||CR
temp=temp'Netmail-ware as usual.'||CR||CR
temp=temp'2:254/205.0 - Mat Bettinson'||CR
temp=temp'2:254/255.0 - Anthony Brice'||CR
'requestresponse TITLE "Addfile '||ver||' By Anthony Brice and Mat Bettinson" PROMPT "'||TEMP||'" GADGETS "_Send file|_About|_ABORT" center'
if rc=0 then do
exit
end
if rc=2 then do
call about
exit
end
'requestresponse TITLE "System selection" PROMPT "What system do you wish to attach to?" GADGETS "_Unlisted|_Requestor|_Abort" CENTER'
if rc=0 then do
exit
end
if rc=1 then do
'requeststring TITLE "Poll" PROMPT "Which nodenumber?" CENTER'
system=result
if system=0 then exit
system=strip(system)
end
if rc=2 then do
'requestfile TITLE "Select the systems address" PATTERN "#?.**O" PATH '||outbound
if result=0 then exit
crap=substr(result,6,11," ")
system=strip(crap)
end
'requestfile TITLE "Select a file to send" PATH '||filedefault
file=result
if file=0 then exit
file=strip(file)
If ~EXISTS(File) then DO
'requestnotify PROMPT "That file does not exist!"'
EXIT
END
'requestresponse TITLE "Delete file" PROMPT "Delete after send?" GADGETS "_Yes|_No|_Abort" CENTER'
DC = ''
if rc=0 then do
exit
end
If rc=1 then do
DC = '^'
end
temp = translate(system,' ',':/.')
Parse Var temp zone net node point
point=strip(point)
system = translate(system,"..",":/")
If point = '' then DO
system=system'.0'
END
new = 0
IF exists(outbound||system'.HLO') then flowfile = system'.HLO'
ELSE IF exists(outbound||system'.DLO') then flowfile = system'.DLO'
ELSE IF exists(outbound||system'.CLO') then flowfile = system'.CLO'
ELSE IF exists(outbound||system'.FLO') then flowfile = system'.FLO'
ELSE DO
flowfile = system'.FLO'
new = 1
END
If new = 0 then do
temp = translate(File," ",":/")
FName = upper(word(temp,words(temp)))
call Open(chk,Outbound||flowfile,'R')
Do Forever
in = upper(readln(chk))
if eof(chk) then break
If Index(in,Fname) ~= 0 then DO
'requestnotify PROMPT "Error that file is already listed to send" Center'
EXIT
END
END
Call Close(chk)
Call Open(crap,Outbound||flowfile,'A')
end
if new = 1 then do
Call Open(crap,Outbound||flowfile,'W')
end
call WriteLN(crap,DC||file)
Call Close(crap)
'requestnotify PROMPT "File added to the waiting packet" CENTER'
EXIT
About:
temp=''
temp=temp'Addfile for Spot by Anthony Brice and Mat Bettinson'||CR||CR
temp=temp'Add a file to FLO,HLO,CLO and DLO packets '||CR
temp=temp'which are waiting to be sent to downlinks '||CR
temp=temp'from your BBS system. Basically knocked up'||CR
temp=temp'as a quick way to send a file to a node or'||CR
temp=temp'point from your system if your filefreq is'||CR
temp=temp'up the creek, or you want to make life very'||CR
temp=temp'easy for yourself ;)'||CR||CR
temp=temp'All the hard graft arexx was done by Mat, and'||CR
temp=temp'being a lazy Git, Anthony converted it to'||CR
temp=temp'run from Spot with a lazy mans idea of GUI'||CR||CR
'requestnotify PROMPT "'||TEMP||'" center'
return